﻿<%@ Page Title="" Language="C#" MasterPageFile="~/SecuredSite.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="BigLotterySyndicate.Secured.Draws.Default" %>
<%@ Register TagPrefix="Syndicate" TagName="DrawsList" Src="~/Secured/Draws/Controls/DrawsList.ascx" %>
<%@ Register TagPrefix="Syndicate" TagName="DrawDetails" Src="~/Secured/Draws/Controls/DrawDetails.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    
    <link href="/Assets/Css/jquery-ui-1.7.2.custom.css" media="all" rel="stylesheet" type="text/css"/>
    <script type="text/javascript" src="/Assets/Scripts/jquery-ui-1.7.2.custom.min.js"></script>  
    <script type="text/javascript" src="/Assets/Scripts/timepicker.js"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<asp:MultiView ID="MultiViewUsers" runat="server">
<asp:View ID="ViewList" runat="server">
<Syndicate:DrawsList ID="DrawsList" runat="server" />
</asp:View>
<asp:View ID="ViewDetails" runat="server">
<Syndicate:DrawDetails ID="DrawDetails" runat="server" />
</asp:View>
</asp:MultiView>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="documentReady" runat="server">    
    $("#pasteNumbers").bind('paste', function(e) {
    $(self).val('');

     var self = this;
          setTimeout(function(e) {
          
          var numbers = $(self).val().trim().split(' ');
          
          $.each(numbers, function(key, number) {
          
          $(".b" + key).val(number.trim());

          //console.log(key);
          //console.log(line);
   // var parts = line.split(' ');
   // output += '<span>' + parts[0] + ' ' + parts[1] + '</span><span>' + parts[2] + '</span>\n';
});
$(self).val('');
            //alert($(self).val());
          }, 0);
});
</asp:Content>
